<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
 <style type="text/css">
 				.cen{
 					margin:0 auto;
 					width: 80%;
 				}
				.form-groups {
				     margin-right: 15px; 
				    margin-left: 15px; 
				    margin-bottom: 15px;  
				}
				.bootstrap-dialog.type-primary .modal-header {
				    background-color: white;
				    text-align: center;
				}
				.bootstrap-dialog  .bootstrap-dialog-title {
				    color: black;
				    font-weight: 900;
				    font-size: 20px;
				}
				.modal-header {
				    min-height: 16.43px;
				    padding: 15px;
				    border-bottom: 1px ;
				}
				.modal-content{
					width: 80%;
				}
				.col-lg{
					width: 100%;
				}
				.search-labels {
				    float: left;
				    font-weight: bold;
				    color: inherit;
				    display: block;
				    padding: 0px 0px;
				    width: auto;
				    font-size: 14px;
				    margin-left: 5px;
				}
</style>

<form id="addForm" action="${BASE_PATH}/bus/user/doSendMessage" method="post" class="form-horizontal" >
<input name="ids" value="${ids }" hidden="hidden">
	<div class="row cen">
		<div class="form-groups ">
		    <label class="col-lg "><label class="search-labels">发送类型：</label>手机短信</label>
		</div>
		<div class="form-groups">
			<label class="col-lg "><label class="search-labels">消息内容：</label><textarea name="message" rows="5" cols="50" style="resize: none;" required></textarea></label>
		</div>
		<div class="form-groups ">
		   <div class="col-lg-6"><button class="btn btn-primary col-sm-3 pull-right" type="submit" autocomplete="off">发送</button></div>
		 <div class="col-lg-6"><button class="btn btn-default col-sm-3 pull-left"  type="button" onclick="javascript:messageDialog.close();" autocomplete="off">取消</button></div>
		</div>
	</div>
</form>
<script type="text/javascript">
$(function(){
	//初始化表单验证
	$("#addForm").validate({
		ignore: "",
		messages:{
			message: {required: "请输入消息内容"}
		},
		submitHandler:function(form){
			$(form).ajaxSubmit({
				success:function(data){
					dataPaginator.loadPage(1);
					messageDialog.close();
				}
			});
		}
	});
});
</script>